package com.ssd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ssd.entity.operation.dto.AssginRoleDto;
import com.ssd.entity.operation.dto.LoginDto;
import com.ssd.entity.operation.dto.SysUserDto;
import com.ssd.entity.operation.entity.SysUser;
import com.ssd.entity.operation.vo.LoginVo;

import java.io.IOException;

/**
 * <p>
 * 系统用户表 服务类
 * </p>
 *
 */
public interface SysUserService extends IService<SysUser> {
    //1 用户条件分页查询接口
    PageInfo<SysUser> findByPage(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    //2 用户添加
    void saveSysUser(SysUser sysUser);

    //3 用户修改
    void updateSysUser(SysUser sysUser);

    //4 用户删除
    void deleteById(Long userId);

    //用户分配角色
    void doAssign(AssginRoleDto assginRoleDto);

    //用户登录
    LoginVo login(LoginDto loginDto) throws IOException;


}
